<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib prefix="p" uri="http://primefaces.prime.com.tr/ui"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<f:view>
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title>Organizer Project</title>
            <p:resources />
        </head>
        <body>
            <p:messages showDetail="#{loginManegedBean.usuario.login}"/>
            <h3>Ola, <h:outputText value="#{loginManegedBean.usuario.login}!"/></h3>
            <h:form prependId="false">
                <p:menu style="width:200px;"> 
                     <p:submenu label="Usuário">  
                         <p:menuitem value="Sair"  action="#{loginManegedBean.logout}" ajax="false" immediate="true" />  
                        <p:menuitem value="Visualizar" action="#{usuarioManegedBean.visualizar}" ajax="false" immediate="true"/>  
                        <p:menuitem value="Editar" action="#{usuarioManegedBean.inicioEditar}" ajax="false" immediate="true"/>  
                        <p:menuitem value="Excluir" action="#{usuarioManegedBean.excluir}" ajax="false" immediate="true"/>  
                     </p:submenu> 
                     
                    <p:submenu label="Compromisso">  
                        <p:menuitem value="Visualizar" action="listandoCompromissos" ajax="false"/>  
                        <p:menuitem value="Cadastrar" action="cadastrandoCompromisso" icon="ui-icon-disk" ajax="false"/>  
                    </p:submenu>  
                </p:menu>
            </h:form>
                       
        </body>
    </html>
</f:view>
